import xlrd
def getExcelData(xlsName, sheetName):
    xls = xlrd.open_workbook(xlsName)
    sheet = xls.sheet_by_name(sheetName)
    rows = sheet.nrows
    data = []
    for i in range(rows):
        tmpList = []
        tmp1 = sheet.cell_value(i, 0)
        tmpList.append(tmp1)
        tmp2 = sheet.cell_value(i, 1)
        tmpList.append(tmp2)
        data.append(tmpList)
    return data